package demo3;

class Test4 {
    public int a;
    public static int b;
    public static String color;

    static {
        b = 2222;
        color = "man";
    }

    public static void print() {
        System.out.println(b+color);
    }

    public static void main(String[] args) {
       Test4.print();
    }
}


public class Test3 {
    public int a;
    public int b;
    public String ch;

    {
        a = 520;
        b = 1314;
        ch = "CSDN";
    }

    @Override
    public String toString() {
        return "Test3{" +
                "a=" + a +
                ", b=" + b +
                ", ch='" + ch + '\'' +
                '}';
    }

    public static void main(String[] args) {
        //System.out.println(new Test3().toString());
    }
}

